home *** CD-ROM | disk | FTP | other *** search
/ Champak 43 / Vol 43.iso / games / superdog.swf / scripts / DefineSprite_1103 / frame_2 / DoAction.as
Encoding:
Text File  |  2007-06-25  |  446 b   |  15 lines

  1. stop();
  2. onEnterFrame = function()
  3. {
  4.    if(_parent._parent.pauses == false)
  5.    {
  6.       getTime(60);
  7.       faces();
  8.       if(vars == false and Math.abs(_parent._parent.man._x - (this.getBounds(_parent._parent).xMin + this.getBounds(_parent._parent).xMax) / 2) <= 100 and Math.abs(_parent._parent.man._y - this.getBounds(_parent._parent).yMax) <= 100)
  9.       {
  10.          this.gotoAndPlay("attack");
  11.          vars = true;
  12.       }
  13.    }
  14. };
  15.